<?php
namespace ChannelThrift\Service;

use Base\BaseService;
use Think\Crypt\Driver\Think;
use Think\Model;

class BiddingLogService extends BaseService {
    Protected $autoCheckFields = false;

    /**
     * 新增竞拍出价记录
     * @param $data
     * @return bool|mixed
     */
    public function InsertBiddingLog($data)
    {
        $log =  D("ChannelThrift/Aums/BiddingLog")->add($data);
        return $log;
    }


    /**
     * 设置修改信息
     * @param $where  条件
     * @param $data   修改内容
     * @return bool
     */
    public function setBiddingLogInfo($where=array(),$data=array()){
        return D('ChannelThrift/Aums/BiddingLog')->where($where)->save( $data );
    }


    /**
     * 查找竞拍出价记录
     * @param $map
     * @return mixed
     */
    public function getBiddingLog($map)
    {
        $logs =  D("ChannelThrift/Aums/BiddingLog")->where($map)->select();
        return $logs;
    }
}
